.messageItem {
  // padding: 8px 0;
  .messageItemSection {
    display: inline-block;
  }
  .messageItemSectionLeft {
    width: 90%;
  }
  .messageItemContent {
    display: inline-flex;
    gap: 1.25rem;
  }
  .messageItemContentReverse {
    flex-direction: row-reverse;
  }

  .messageTextBase() {
    padding: 0.625rem;
    background: #FFFFFF;
    border-radius: 0.25rem 1rem 1rem 1rem;
    & > p {
      margin: 0;
    }
  }
  .messageText {
    .chunkText();
    .messageTextBase();
    background-color: #fff;
    word-break: break-word;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
  }
  .messageTextDark {
    .chunkText();
    .messageTextBase();
    background-color: #1668dc;
    word-break: break-word;
    :global(section.think) {
      color: rgb(166, 166, 166);
      border-left-color: rgb(78, 78, 86);
    }
  }

  .messageUserText {
    .chunkText();
    .messageTextBase();
    background: #3F81F3;
    border-radius: 1rem 0.25rem 1rem 1rem;
    word-break: break-word;
    text-align: justify;
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
  }
  .messageEmpty {
    width: 300px;
  }

  .thumbnailImg {
    max-width: 1.25rem;
  }
}

.messageItemLeft {
  text-align: left;
}

.messageItemRight {
  text-align: right;
}

:where(.ant-collapse-borderless) > .ant-collapse-item {
  border-bottom: none !important;
}
:where(.css-dev-only-do-not-override-1wxecgq).ant-collapse>.ant-collapse-item >.ant-collapse-header {
  padding: 0 !important;
}